<h2><?= anchor('admin/redaction/faq', 'FAQ') ?> Ordre des questions</h3>

<div class="button-box">
	<?= button_link('admin/faqs', 'Retour à la liste', 'table') ?>
	<?= button_link('admin/faqs/new_faq', 'Nouvelle question', 'add') ?></div>
<ul class="sortable-container" id="faq_sortable">
	<?php foreach ($faqs as $faq) { ?>
		<li class="sortable-item" id="faq_<?= $faq->id ?>">
			<div class="sortable-actions">
				<?= details_link($faq, 'faq_details') ?>
				<?= edit_link($faq, 'faqs/edit') ?>
				<?= delete_link($faq, 'faq_delete') ?>
			</div>

			<h4><?= $faq->question ?></h4>
			
			Créé le <?= time_to_str($faq->created_at) ?><br />
			En ligne : <?= bool_icon($faq->online) ?>
		</li>
	<?php } ?>
</ul>
